MotorRotateAbs
Rotates a motor to an absolute angle
Contents
Syntax
MotorRotateAbs(port,abs_angle,power)
MotorRotateAbs(port,abs_angle,power, handle)
Description
MotorRotateAbs(port,abs_angle,power) rotates the motor connected to the given port. The value port can be addressed by the symbolic constants MOTOR_A, MOTOR_B and MOTOR_C analog to the labeling on the NXT Brick. The angle determines the absolute angle to rotate. power represents the motor power (1...100).
The last optional argument can be a valid NXT handle. If none is specified, the default handle will be used (call COM_SetDefaultNXT to set one).
Note:
This function should only be used by the advanced user.
Example
MotorRotateAbs(MOTOR_B, 550, 30);
See also
SetMemoryCount, GetMemoryCount, NXT_SetOutputState, MOTOR_A, MOTOR_B, MOTOR_C
Signature
- Author: Robert Schwann, Bernd Neumann (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2008, RWTH Aachen University